﻿using System;
using System.Collections.Generic;
using System.Text;

namespace WeFeTeLib.Zend
{
    class ZendFramework : Framework
    {
        public ZendFramework()
            : base()
        {
            name = "Zend";
        }

        public override void setDefaultFiles()
        {
            frameworkFiles.Add(new File("dummy.php", 0, System.Net.HttpStatusCode.OK));
            frameworkFiles.Add(new File("server-status", "Forbidden", 
                System.Net.HttpStatusCode.Forbidden));
            frameworkFiles.Add(new File("server-info", "Forbidden", 
                System.Net.HttpStatusCode.Forbidden));
        }

        public override void setDefaultCookies()
        {
        }

        public override void setDefaultFolders()
        {
            frameworkFolders.Add(new Folder("cgi-bin/", System.Net.HttpStatusCode.Forbidden));
            frameworkFolders.Add(new Folder("ZendServer/", System.Net.HttpStatusCode.OK));
            frameworkFolders.Add(new Folder("phpMyAdmin/", System.Net.HttpStatusCode.OK));
        }

        public override void setDefaultHeaders()
        {
            frameworkHeaders.Add(new Header("X-Powered-By", "Zend", "/"));
        }
    }
}
